<?php

namespace App\Enums\WorkOrder;

use App\Enums\OpenShop\BaseErrorCode;

class ErrCode extends BaseErrorCode
{

    const CODE_ERR_WORK_ORDER_NO            = 500001;
    const CODE_ERR_STEP_GRAB                = 500002;
    const CODE_ERR_NEXT_STEP_ERR            = 500003;
    const CODE_ERR_NEXT_STEP_MISSION_EXISTS = 500004;
    const CODE_ERR_PROBLEM_PID_TO_ROLE      = 500005;
    const CODE_ERR_MANAGER_ASSIGN           = 500006;
    const CODE_ERR_REPEAT_GRAB              = 500007;
    const CODE_ERR_USER_NOT_ROLE            = 500008;
    const CODE_ERR_PROBLEM_PID_GARB         = 500009;
    const CODE_ERR_UPDATE_WORK_ORDER        = 500010;
    const CODE_ERR_CLOSE_WORK_ORDER         = 500011;
    const CODE_ERR_REPEAT_CLOSE_WORK_ORDER  = 500012;
    const CODE_ERR_STEP_NORMAL_OFF          = 500013;
    const CODE_ERR_CIRCULATION_OFF          = 500014;
    const CODE_ERR_CIRCULATION_FAIL         = 500015;
    const CODE_ERR_ADD_WORK_ORDER_FAIL      = 500016;
    const CODE_ERR_ENGINE_FINISH_REPEAT     = 500017;
    const CODE_ERR_NOT_FIND_MANAGER         = 500018;
    const CODE_ERR_NOT_STEP_UPDATE_DATA     = 500019;
    const CODE_ERR_NOT_FOUND_FY_INFO        = 500020;
    const CODE_ERR_EXIST_SEND_EMAIL         = 500021;


    const CODE_CN = [
        self::CODE_ERR_WORK_ORDER_NO            => '不存在的工单号',
        self::CODE_ERR_STEP_GRAB                => '订单未处于待抢单阶段',
        self::CODE_ERR_NEXT_STEP_ERR            => '订单获取下一阶段错误',
        self::CODE_ERR_NEXT_STEP_MISSION_EXISTS => '订单下一阶段任务已存在',
        self::CODE_ERR_PROBLEM_PID_TO_ROLE      => '未配置问题类型对应负责人类型',
        self::CODE_ERR_MANAGER_ASSIGN           => '订单未完成负责人指派',
        self::CODE_ERR_REPEAT_GRAB              => '重复抢单',
        self::CODE_ERR_USER_NOT_ROLE            => '你没有抢单该订单的角色权限',
        self::CODE_ERR_PROBLEM_PID_GARB         => '当前问题类型不允许抢单',
        self::CODE_ERR_UPDATE_WORK_ORDER        => '修改工单失败',
        self::CODE_ERR_CLOSE_WORK_ORDER         => '您没有关闭工单的权限',
        self::CODE_ERR_REPEAT_CLOSE_WORK_ORDER  => '工单的状态为已完成或已关闭,不可变更',
        self::CODE_ERR_STEP_NORMAL_OFF          => '该阶段不允许修改信息',
        self::CODE_ERR_CIRCULATION_OFF          => '该工单不支持转交',
        self::CODE_ERR_CIRCULATION_FAIL         => '工单转交失败',
        self::CODE_ERR_ADD_WORK_ORDER_FAIL      => '添加工单失败',
        self::CODE_ERR_ENGINE_FINISH_REPEAT     => '重复完成任务',
        self::CODE_ERR_NOT_FIND_MANAGER         => '未匹配到相应负责人',
        self::CODE_ERR_NOT_STEP_UPDATE_DATA     => '当前阶段不能修改数据',
        self::CODE_ERR_NOT_FOUND_FY_INFO        => '未找到富友消息',
        self::CODE_ERR_EXIST_SEND_EMAIL         => '富友邮件状态已发送',
    ];

}
